import { get, post } from '../http/request.js'

// 根据消息id查找消息
export function getMessageDetail(params) {
    return get('/notification/getMessageById',params)
}

//修改未读为已读
export function markAsRead(params) {
    return post('/notification/markAsRead',params)
}

//根据员工编号查找所有消息
export function getMessageByEmpId(params) {
    return get('/notification/getMessageByEmpId',params)
}

// 判断员工是否有未读消息
export function hasUnreadMessage(params) {
    return get('/notification/checkUnreadMessages',params)
}